package com.TwinBlade.PicturePassword;

import a.a.a.a;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESKeySpec;

public class be
{
  private SecretKey a;

  public be()
  {
    try
    {
      DESKeySpec localDESKeySpec = new DESKeySpec("PicturePassword".getBytes("UTF8"));
      this.a = SecretKeyFactory.getInstance("DES").generateSecret(localDESKeySpec);
      return;
    }
    catch (Exception localException)
    {
    }
  }

  public String a(String paramString)
  {
    try
    {
      byte[] arrayOfByte = paramString.getBytes("UTF8");
      Cipher localCipher = Cipher.getInstance("DES");
      localCipher.init(1, this.a);
      String str = a.a(localCipher.doFinal(arrayOfByte));
      return str;
    }
    catch (Exception localException)
    {
    }
    return "null";
  }

  public String b(String paramString)
  {
    try
    {
      byte[] arrayOfByte = a.b(paramString);
      Cipher localCipher = Cipher.getInstance("DES");
      localCipher.init(2, this.a);
      String str = new String(localCipher.doFinal(arrayOfByte), "UTF8");
      return str;
    }
    catch (Exception localException)
    {
    }
    return "null";
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.be
 * JD-Core Version:    0.6.2
 */